package com.tj.collection.controller.chatter.response;

import com.kly.user.dto.chatter.Chatter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.Date;

@Data
@ApiModel(value = "chatterDetailResp", description = "chatter详细信息参数")
public class ChatterDetailResp {
    @ApiModelProperty("chatter code")
    private String chatterCode;
    @ApiModelProperty("chatter account")
    private String account;
    @ApiModelProperty("chatter名称")
    private String nickName;
    @ApiModelProperty("chatter重复提示信息, 姓名重复时提示：Name already exists")
    private String nickNameMDetailultiDesc;
    @ApiModelProperty("性别：1-男 2-女 3-未知")
    private Integer gender;
    @ApiModelProperty("工作类型：1-Full 2-PartTime")
    private Integer jobType;
    @ApiModelProperty("评级：1-S 2-A 3-B")
    private Integer level;
    @ApiModelProperty("startHour1")
    private Integer startHour1;
    @ApiModelProperty("startHour2")
    private Integer startHour2;
    @ApiModelProperty("endHour1")
    private Integer endHour1;
    @ApiModelProperty("endHour2")
    private Integer endHour2;
    @ApiModelProperty("国家:巴基斯坦-PAK， 墨西哥-MX  菲律宾-PH")
    private String area;
    @ApiModelProperty("城市：Manila， 其它：Others")
    private String city;


    public static ChatterDetailResp toChatter(Chatter request) {
        ChatterDetailResp chatter = new ChatterDetailResp();
        BeanUtils.copyProperties(request, chatter);
        return chatter;
    }
}
